package com.g13.virtualpethospital.entity;

import com.g13.virtualpethospital.entity.base.Option;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Title: QuestionEntity
 * @Author yyj1205
 * @Package com.g13.virtualpethospital.entity
 * @Date 24/3/2024 19:43
 * @description: 问题
 */
@ApiModel(description = ": 问题")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("Question")
public class QuestionEntity {
    /**
     * 答案
     */
    @ApiModelProperty(value = "答案", position = 1)
    private String answer;
    /**
     * 题干，题目内容
     */
    @ApiModelProperty(value = "题干，题目内容", position = 2)
    private String content;
    /**
     * 题目选项
     */
    @ApiModelProperty(value = "题目选项", position = 3)
    private Option[] Options;
    /**
     * 试题ID
     */
    @Id
    @ApiModelProperty(value = "试题ID", position = 4)
    private String questionId;
    /**
     * 一级菜单
     */
    @ApiModelProperty(value = "一级菜单", position = 5)
    private String questionLevel1;
    /**
     * 二级菜单
     */
    @ApiModelProperty(value = "二级菜单", position = 6)
    private String questionLevel2;

    /**
     * 引用计数
     */
    @ApiModelProperty(value = "引用计数", position = 7)
    private long usedCnt;

}
